﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Application
{
    /// <summary>
    /// 白名单信息
    /// </summary>
    public class Whitelist
    {
        /// <summary>
        /// 项目编号
        /// </summary>
        /// <remarks>字节数：4，格式：HEX，说明：低位在前</remarks>
        public uint ProjectNumber { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        /// <remarks>字节数：100，格式：UTF-8，说明：用于机器显示用</remarks>
        public string ProjectName { get; set; } = string.Empty;

        /// <summary>
        /// 数据记录列表
        /// </summary>
        public List<DataRecord> Records { get; set; } = new List<DataRecord>();
    }

    public class DataRecord
    {
        /// <summary>
        /// 工人编号
        /// </summary>
        /// <remarks>字节数：4，格式：HEX</remarks>
        public uint WorkerNumber { get; set; }

        /// <summary>
        /// 工人姓名
        /// </summary>
        /// <remarks>字节数：10，格式：UTF-8</remarks>
        public string WorkerName { get; set; } = string.Empty;

        /// <summary>
        /// 身份证号码
        /// </summary>
        /// <remarks>字节数：18，格式：ASCII</remarks>
        public string IDNumber { get; set; } = string.Empty;

        /// <summary>
        /// 采集照片长度
        /// </summary>
        /// <remarks>字节数：4，格式：Hex</remarks>
        public uint PhotoLength { get; set; }

        /// <summary>
        /// 是否拉取
        /// </summary>
        public bool IsPull { get; set; }
    }

}
